package com.liuyou.weather;

public class WeatherWebsideCurrentCondition {
    public void update(double temperature, double pressure, double humidity) {
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidity = humidity;
        System.out.println(toString());
    }

    @Override
    public String toString() {
        return "WeatherWebsideCurrentCondition{" +
                "temperature=" + temperature +
                ", pressure=" + pressure +
                ", humidity=" + humidity +
                '}';
    }

    public WeatherWebsideCurrentCondition(double temperature, double pressure, double humidity) {
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidity = humidity;
    }

    public WeatherWebsideCurrentCondition() {
    }

    private double temperature;
    private double pressure;
    private double humidity;

}
